package com.cn.bdqn.javaoop03.demo8;

public class Customer {
	private String id;
	private String name;
	
	public Customer(String id,String name){
		this.id=id;
		this.name=name;
		
	}

	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}
	
	public int  calcTotalRent(MotoVehicle motos[],int days){
		int sum=0;
		for (int i = 0; i < motos.length; i++) {
			sum+=motos[i].calRent(days);
			
		}
		return sum;
		
	}

	

}
